package co.fitstart.weapp.api.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;

import co.fitstart.entity.market.satisfaction.SatisfactionSurvey;
import co.fitstart.entity.user.Student;

/**
 * 
 * @author haiyan_xiao
 *
 */
@Dao("hibernate")
public interface SatisfactionSurveyDao {

    @Query("FROM SatisfactionSurvey survey WHERE survey.fillInTime IS NULL AND survey.courseRound.student = :student")
    public SatisfactionSurvey load(@Variable("student") Student student);
}
